package com.itkaien.anno;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Component
public class Person  implements PersonInterface{
    private String name="zhangsan";

    @Override
    public void eat() {
        System.out.println("eat");
    }

    @Override
    public void sleep() {

    }

    @Override
    public void play() {

    }
}
